package com.atguigu.chaptar1

object $06_DataType {
  def main(args: Array[String]): Unit = {
  var a = null;
    var name = null
  var aa :String = null
    aa="wangzhixiang"
    println(aa)

    var aaa = 1
    var bbb = s"${aaa}"
    var ccc = aaa.toString
    var aaaa = "123"
    var bbbb = aaaa.toInt

    val a1 : Int = 10
    val b1 : Long = a1
    val c1 : Int = b1.toInt
    val s = "10.0" //注意无法转化成整型,只能转换成浮点型
    val d:Int = s.toInt
    val e:Double = s.toDouble
    val f:Double = c1
    val gg: String =e.toString
    val ggg:String = e+""
    val gggg: String = s"${e}"

  }

}
